import axios from 'axios'
export default{
     getStudent(params){
         return axios({
             url:'/students/getStudents',
             method:'get',
             params
         })
     },
     addStudent(data){
         return axios({
             url:'/students/addStudents',
             method:"post",
             data
         })
     },
     delStudent(data){
         return axios({
             url:'/students/deleteStudents',
             method:'delete',
             data
         })
     },
     getOne(params){
            return axios({
                url:'/students/getStudentsById',
                method:'get',
                params
            })
     },
     studentUpdate(data){
         return axios({
             url:'/students/updateStudents',
             method:'put',
             data
         })
     }
    
}